package com.company;

public class Main24 {
    public static void main(String[] args) {
        int[][] a=new int[5][3];
        int[] b=new int[5];
        for (int i=0;i<5;i++){
            for (int j=0;j<3;j++){
                a[i][j]= (int) Math.floor(Math.random()*100);
                System.out.print(a[i][j]+" ");
                b[i]+=a[i][j];
            }
            b[i]/=3;
            System.out.println("平均分:"+b[i]);
        }
        }

}
